package day04;

/**
 *定义一个交易人员的类，添加必要属性（名字和城市）
 */
public  class Trader{
    private String name;
    private String city;
    public Trader(String n, String c){
        this.name = n;
        this.city = c;
    }
    public String getName(){   return this.name;   }
    public String getCity(){   return this.city;   }
    public void setCity(String newCity){   this.city = newCity; }
    public String toString(){
        return "Trader:"+this.name + " in " + this.city;
    }
}
